<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/additional/card/cardRule/cardRuleAdd.html',"添加成功！","添加失败！");
	});
</script>
<style>
.hide{display:none;}
.sForm .ipt{margin-left:155px;}
.sForm .ipt1{margin-bottom:20px;margin-left:155px;}
.sForm .lab{width:139px;}
</style>
<div class="popForm sForm">
    <form id="form"  method="post">

		<div class="formitm">
			<label class="lab">卡片规则名称：</label>
			<div class="ipt">
				<input type="text" name="name" class="w200 easyui-validatebox" data-options="required: true" value="" maxlength="10"/>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">是否启用：</label>
			<div class="ipt">
				<input type="radio" id="status" class="xj-hongbao" value="1" name="status" checked="checked">启用
				<input type="radio" id="status" class="xn-hongbao" value="0" name="status">禁用
			</div>
		</div>
		<div class="formitm">
			<label class="lab">卡片类型：</label>
			<div class="ipt">
				<select name="type" id="type">
					<option value="1">“酒”酒卡</option>
					<option value="2">“掌”酒卡</option>
					<option value="3">“柜”酒卡</option>
				</select>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">有效期：</label>
			<div class="ipt">
				<input type="text" name="validDay" class="w200 easyui-validatebox" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  maxlength="10" data-options="required: true" value=""/>天
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">卡片总数：</label>
			<div class="ipt">
				<input type="text" name="total" class="w200 easyui-validatebox" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  maxlength="10" data-options="required: true" value=""/>张
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			 <label class="lab">卡片规则描述：</label>
			 <div class="ipt">
				<textarea rows="3" maxlength="150" cols="50" name="description"></textarea>
			 </div>
		</div>
	</form>
</div>

